package com.duang.framework.dao;

public interface Dialect {

	public String update(Model model);

	public String update(Model model, String[] fields);

	public String getById(Model model);

	public String getById(Model model, String... whereColumn);

	/**
	 * @deprecated
	 * @param model
	 * @param whereColumn
	 * @return
	 */
	public String getById(Model model, String whereColumn);

	/**
	 * The method mainly is used to generate Insert SQL
	 * 
	 * @param model
	 * @return The Insert SQL
	 */
	public String save(Model model);

	/**
	 * component the sql for delete record
	 * 
	 * @param model
	 * @return
	 */
	public String delete(Model model);
}
